﻿#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
	//char arr[] = "zpengwei@yeah.net";
	char arr[] = "zpengwei@yeah.net@hehe.haha#ttttt";
	char buf[256] = { 0 };
	strcpy(buf, arr);
	char* ret=NULL;
	char* sep = "#.@";
	for (ret = strtok(buf, sep); ret != NULL; ret = strtok(NULL, sep))
	{
		printf("%s\n", ret);
	}
	/*char* ret = strtok(buf, sep);
	printf("%s", ret);
	ret = strtok(NULL, sep);
	printf("%s", ret);
	ret = strtok(NULL, sep);
	printf("%s", ret);*/
	return 0;
}